?In fact, there are problems, a period of time to find a continuous scan after about more than 20 minutes, the connection was disconnected, but also a difficult search, found to be hbase This version of the problem, it will all the connection (whether or not in use) default to idle state, and then have a hbase.thrift.connection.max-idletime configuration, So I'll configure this as 31104000 (one year), if it's in CDH, it should be in the Admin page configuration,General steps to encounter problem
1 Error phenomena
The HTTP service implemented by Threadinghttpserver, if the client is actively disconnected before the server returns, the server side will report [Errno] broken pipe wrong and cause the processing thread to crash.
Let's take a look at an example, Python version: 2.7
Sample code
The code is as follows
Copy Code
#!/usr/bin/env python#!coding=utf-8Import OSImp
Python prompts [Errno 32] How to Solve the thread crash error caused by Broken pipe, errnocrash
This example describes how to solve the thread crash error caused by the Python prompt [Errno 32] Broken pipe. Share it with you for your reference. The specific method is as follows:
1. ErrorThe http service implemented by
SSH logon error: packet_write_wait: connection to x. x port 22: broken pipe
References:
Https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/
After you connect to the server by using an SSH command, if you do not perform the operation for a period of time, when you enter terminal again, there will be no response for a period of time, and an error prompt will appear:
packet_write_wait: Connection to 4
The example in this article tells the python hint [Errno 32]broken pipe causes a thread crash error resolution. Share to everyone for your reference. The specific methods are as follows:
1. Error phenomenathe HTTP service implemented by Threadinghttpserver, if the client is actively disconnected before the server returns, the server side will report [Errno] broken
When writing a socket program in Linux, if you try to send it to a disconnected socket, the underlying layer will throw a sigpipe signal.
After the client sends a message to the server through pipe, it closes the client. At this time, the server generates a broken pipe signal when it returns the message to the client.
For signal generation, we can use the method
Error One:Encounter a very strange problem, web.py code inside the errorIOError: [Errno] Broken pipeStart command:Nohup python xxx.py >> Xxx.log SSH log on to the machine, boot, does not appearIOError problem occurs when remote SSH executes the startup scriptView the process PID, LL/PROC/Guess is SSH login in the past, Nohup will redirect stderr, default redirect to stdout, but SSH session stdout should be pipe
server and the database server are AIX.2. Detect the connectivity between the application server and the database server, ping the database server on the application server ip,ping a minute, is a pass, and there is no problem of packet loss. Telnet the database server IP: port on the application server, it is pass, connectivity is not a problem.3. Log in to the database server, view the listening log listener.log, and found that the application server IP is normal.4. It is still not possible to
Symptoms:
Warning:error Sending End PacketJava.net.SocketException:Broken Pipe
Information:
The cause of broken pipe is usually when the pipe read end is not read, and the end of the pipeline is written, the pipeline is interrupted. (Because the pipe is a one-way communica
SSH "Write failed: Broken pipe" timeout issue fixed, sshpipe
Bloggers are keen on a variety of Internet technologies. They are often nagging and often accompanied by obsessive-compulsive disorder and are often updated. If they think that the articles are helpful to you, they can pay attention to me. For more information, see "Deep Blue Sickle"
When using ssh, the error message "Write failed:
After debugging for almost one day, I am tossing and killing me for a bug.
The reason for the bug is that Code When not careful, will: Written: Obviously, A function starts to call itself recursively without limit.In a short time, the stack of the thread where the function is located will be full, so stackoverflowerror will be thrown.Once java. Lang. stackoverflowerror is found, it indicatesProgramThere is an endless loop in it, or there are too many recursive layers, so all the stacks alloca
When using the socket to simulate the HTTP POST upload data, we encounter the following problems
Exception information:
07-31 16:05:49.165:w/system.err (16351): java.net.SocketException:sendto failed:epipe (broken pipe)07-31 16:05:49.165:w/system.err (16351): at Libcore.io.IoBridge.maybeThrowAfterSendto (iobridge.java:499)07-31 16:05:49.165:w/system.err (16351): at Libcore.io.IoBridge.sendto (iobridge.java:
) at Java.lang.Thread.run (thread.java:619)The errors is caused by writing to a connection while the other end has already closed it. Basically, this was caused by the peer unexpectedly ending the connection (for instance, by closing the browser of an H TTP connection). When the user closes the client session, the server cannot write any streams to that client and generates this error. If you click in a link and before the page are rendered you click in a second one. The first request is can
Cocould not create pool connection. The DBMS driver exception was: Io exception: Broken pipe, dbmspipe
On-site feedback from colleagues: middleware weblogic cannot connect to the database Oracle. You can see the following in the log:Caused by: weblogic. common. ResourceException: weblogic. common. ResourceException: cocould not create pool connection. The DBMS driver exception was: Io exception:
I wrote a server program. During testing in Linux, I always exit inexplicably. Finally, I tracked the exit caused by a write call. I used GDB to execute the program and prompted "Broken pipe" when exiting ".
Finally, the problem is determined that a socket that has been closed on the peer end is called twice for write. The second request will generate a sigpipe signal, which ends the process by default.
The
Encounter a very strange problem, web.py code inside the errorIOError: [Errno] Broken pipeStart command: Nohup python xxx.py > Xxx.log SSH log on to the machine, boot, does not appearIOError problem occurs when remote SSH executes the startup scriptView the process PID, LL/PROC/Guess is SSH login in the past, Nohup will redirect stderr, default redirect to stdout, but SSH session stdout should be pipe, beca
In the recent C + + server, when communication between two servers, one is Logserver, one is Gameserver, Gameserver timed to Logserver heartbeat packet (that is, logserver equivalent to the server , gameserver equivalentto the client), suddenly disconnected logserver, the equivalent of a server crash, the client does not know, still send data as usual, but the corresponding connection does not exist, Gameserver will report broken
From http://www.linuxidc.com/Linux/2011-03/33134p2.htm
When you write the socket program under Linux, if you try to send it to a disconnected socket, it throws a sigpipe signal to the bottom.
When the client side sends the message to the server by pipe, it closes the client side, and when the server ends, the message is returned to the client to produce a broken pipe
Yesterday, there is a program in addition to the problem, debugging when found to be in the socket communication when the other closed the connection occurred broken pipe error. Search on the internet for a while, others explain the reason is to have closed the socket pipe to write data caused by, but my program is closed when the other side continue to recv, Rec
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.